
package at.fhj.itm.metadata.impl;

import at.fhj.itm.metadata.MetadataItem;
import at.fhj.itm.metadata.SqlType;
import java.util.Collections;
import java.util.List;

/**
 *
 * @author Seuchter
 */
public abstract  class AbstractSqlType extends AbstractMetadataItem implements SqlType{

    private  int length;
    private boolean isArray;


    public AbstractSqlType(String name, int length, boolean  isArray)
    {
        super(name);
        this.length = length;
        this.isArray = isArray;
    }

    public int getSize()
    {
        return this.length;
    }

    public boolean isArray()
    {
       return isArray;
    }



    public abstract MetadataItem copy();

    public List<? extends MetadataItem> getChildren()
    {
        return Collections.emptyList();
    }

}
